Skip to content

Replay Failed Puzzles from Dashboard#1446

Merged
veloce merged 13 commits intolichess-org:mainfrom
CloudyDino:puzzle-replay
Apr 9, 2026
Merged

Replay Failed Puzzles from Dashboard#1446
veloce merged 13 commits intolichess-org:mainfrom
CloudyDino:puzzle-replay

Conversation

@CloudyDino
Copy link
Copy Markdown
Contributor

@CloudyDino CloudyDino commented Feb 15, 2025

Close: #2623

This PR adds the ability to replay your failed puzzles from the dashboard.

Using the new Puzzle Replay API: https://lichess.org/api#tag/Puzzles/operation/apiPuzzleReplay

Another issue I haven't figured out how to fix is the dashboard doesn't update after you solve the failed problems.

I'm really hoping we can get this feature on the new mobile app since I love using it on web!

Old recording:

Android.puzzle.replay.webm

@CloudyDino CloudyDino force-pushed the puzzle-replay branch 5 times, most recently from 8ab1a95 to 942479a Compare February 17, 2025 21:45
@veloce
Copy link
Copy Markdown
Contributor

veloce commented Feb 18, 2025

Thanks for tackling this. I'll review first the hint and rating PRs.

In the meantime I think you can get in touch with the server dev team on discord, and ask about an endpoint to get failed puzzles.

@CloudyDino CloudyDino force-pushed the puzzle-replay branch 2 times, most recently from 82c10bd to 6b73a43 Compare February 20, 2025 20:09
@CloudyDino CloudyDino changed the title Replay Failed Puzzles from Dashboard WIP: Replay Failed Puzzles from Dashboard Feb 20, 2025
@HaonRekcef
Copy link
Copy Markdown
Collaborator

Hey @CloudyDino, I just noticed that the Puzzle Replay API is now available: https://lichess.org/api#tag/Puzzles/operation/apiPuzzleReplay

@CloudyDino CloudyDino force-pushed the puzzle-replay branch 2 times, most recently from dbbb37d to c4faeee Compare April 1, 2026 22:07
@CloudyDino CloudyDino changed the title WIP: Replay Failed Puzzles from Dashboard Replay Failed Puzzles from Dashboard Apr 1, 2026
@CloudyDino
Copy link
Copy Markdown
Contributor Author

@veloce Could you take a look?

@CloudyDino CloudyDino marked this pull request as ready for review April 1, 2026 22:11
Copy link
Copy Markdown
Contributor

@veloce veloce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CloudyDino thanks for this.

Code looks legitimate. Before accepting this PR, it should have tests in puzzle_screen_test.dart.

Puzzles are important in the app and well tested. Ideally this new feature should be fully covered.

@veloce
Copy link
Copy Markdown
Contributor

veloce commented Apr 8, 2026

Another piece of feedback: the replay failed button is at the bottom of the screen, not very visible.

We could maybe have it in the bottom of the dashboard card (where the graphics is)? Then it should not be styled as a FilledButton.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@CloudyDino
Copy link
Copy Markdown
Contributor Author

Thanks! Please see the new tests and the new replay button:

Copy link
Copy Markdown
Contributor

@veloce veloce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@veloce veloce merged commit 7bd26d4 into lichess-org:main Apr 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Puzzle Replay

3 participants